package com.zhengxin.one.entity.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ExcelTarget("society")
public class SocietyExcel implements Serializable {
    @Excel(name = "*姓名")
    @NotNull(message = "姓名不能为空")
    private String name;
    @Excel(name = "*证件号码")
    @NotNull(message = "证件号码不能为空")
    private String id_card;
    @Excel(name = "*户籍市")
    @NotNull(message = "户籍市不能为空")
    private String region;
    @Excel(name = "*户口性质")
    @NotNull(message = "户口性质不能为空")
    private String residence_type;
    @Excel(name = "民族")
    private String nation;
    @Excel(name = "手机")
    private String phone;
    //社保
    @Excel(name = "*参保年月",importFormat = "yyyy/MM/dd")
    @NotNull(message = "参保年月不能为空")
    private Date jointime;
    @Excel(name = "参保基数")
    private String cbase;
    @Excel(name = "自定义信息")
    private String info;
    @Excel(name = "补缴开始年月",importFormat = "yyyy/MM/dd")
    private Date pstime;
    @Excel(name = "补缴结束年月",importFormat = "yyyy/MM/dd")
    private Date petime;
    @Excel(name = "补缴基数")
    private String bnbase;
}
